﻿using System;

namespace ConsoleApp1
{
    class Teacher
    {
        string nameA = "孙悟空";
        string nameB = "沙和尚";
        string nameC = "猪八戒";
        string nameD = "白龙马";
        static string teacherA = "唐僧";

        
        //public string NameA
        //{
        //    get { return this.nameA; }
        //    set { this.nameA = value; }
        //}
        //public string NameB
        //{
        //    get { return this.nameB; }
        //    set { this.nameB = value; }
        //}
        //public string NameC
        //{
        //    get { return this.nameC; }
        //    set { this.nameC = value; }
        //}
        //public string NameD
        //{
        //    get { return this.nameD; }
        //    set { this.nameD = value; }
        //}
        public void Test()
        {
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", nameA, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", nameB, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", nameC, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}",nameD, teacherA);
            Test1();
            Console.WriteLine("--------------------------------------------------");
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", nameA, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", nameB, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", nameC, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", nameD, teacherA);
        }
        void Test1()
        {
            teacherA = "嫦娥";
            

        }
    }
}
